#ifndef DATACONVERSION_H
#define DATACONVERSION_H

#include <QObject>
#include <vector>
#include <QByteArray>
#include <QDebug>


// BASE64转换格式控制
#if 1
#define BASE64

#endif

#ifndef BASE64

#if 0

#define RAWDATA

#endif

#ifndef RAWDATA

#define HEXDATA

#endif

#endif


class DataConversion : public QObject
{
    Q_OBJECT

public:
    explicit DataConversion(QObject *parent = nullptr);
    void readFormatFile(QString filePath);
    void conversion(QString dataFilePath);
    void save(QString logFilePath);

signals:


private:
    std::vector<quint8> formatVector;
    std::vector<QString> dataTypeVector;
    std::vector<QByteArray*> *mDataVector;
};

#endif // DATACONVERSION_H
